package com.shujia.wyh.day08;

/*
    替换功能
        String replace(char old,char new)
        String replace(String old,String new)

 */
public class StringDemo7 {
    public static void main(String[] args) {
        String s = "shujia666";

        //String replace(char old,char new)
        System.out.println(s.replace('6','&'));

        //String replace(String old,String new)
        System.out.println(s.replace("jia","hefei"));
    }
}
